package birdsVSZombiesServer;

import processing.core.PApplet;
import processing.net.Client;
import shared.BVZConstants;

/**
 *	Player class where saves all the information about Players.
 * @author Yang Liu
 * @version Version 0.0.4
 */
public class BVZPlayer {
	
	public static PApplet parent;
	
	//	0 -- Shooter; 1 -- Defender; 3 -- No role selected
	public int playerRole;
	public String playerTitle;
	public Client playerClient;
	
	/**
	 * @param playerRole The role of the player, 0 for shooter, 1 for defender.
	 * @param playerClient
	 */
	public BVZPlayer(int playerRole, Client playerClient) {
		super();
		this.playerRole = playerRole;
		this.playerClient = playerClient;
		switch (playerRole) {
		case BVZConstants.BIRDSSHOOTER:
			this.playerTitle = "Birds Shooter";
			break;
		case BVZConstants.ZOMBIESDEFENDER:
			this.playerTitle = "Zombies Defender";
			break;
		default:
			break;
		}
	}
	
}
